package com.taikang.t.helper;

import java.util.Iterator;
import java.util.List;

import edu.stanford.nlp.trees.TypedDependency;

public class AnalyzeHelper {
	
	@SuppressWarnings("unchecked")
	public static String getKeys(List<TypedDependency> words)
	{
		if(words!=null)
		{
			Iterator phrase = words.iterator();
			while(phrase.hasNext())
			{
				TypedDependency td = (TypedDependency) phrase.next();
				@SuppressWarnings("unused")
				String relation = td.reln().getShortName();
				@SuppressWarnings("unused")
				String governor = td.gov().value();
				System.out.println(td.reln().getLongName()+":"+td.gov()+"___"+td.dep());
				System.out.println(td.gov().toString());
				System.out.println(td.gov().value());
				
				System.out.println(td);
			}
		}
		return null;
	}

}
